/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 游戏头部样式 */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.player-score, .computer-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 1.1rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

/* 游戏主体样式 */
.game-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .game-main {
        grid-template-columns: 1fr;
    }
}

/* 游戏区域样式 */
.game-area {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.choices {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.player-choice, .computer-choice {
    text-align: center;
}

.player-choice h3, .computer-choice h3 {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1rem;
}

.selection-display {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.placeholder {
    font-size: 1rem;
    color: #999;
}

.game-result {
    text-align: center;
    margin: 30px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-result p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #495057;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: #5a67d8;
}

.choice-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text {
    font-weight: bold;
}

/* 统计和历史记录样式 */
.stats-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-stats, .game-history {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-stats h3, .game-history h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.stat-label {
    color: #6c757d;
}

.stat-value {
    font-weight: bold;
    color: #495057;
}

.control-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 历史记录列表 */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-history {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.history-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
}

.history-item.win {
    border-left-color: #28a745;
}

.history-item.lose {
    border-left-color: #dc3545;
}

.history-item.tie {
    border-left-color: #ffc107;
}